package cn.kpt.trade.service;


import cn.kpt.beans.pojo.ItripHotelOrder;

import java.util.Map;

public interface HotelOrderService {
    /**
     * 更新订单状态
     * @param notifyMap
     * @throws Exception
     */
    void updateOrder(Map<String, String> notifyMap)throws Exception;

    /**
     * 检查订单的状态：
     *  1.检查金额
     *  2.检查订单是否可以更改
     * @param notifyMap
     * @return
     * @throws Exception
     */
    boolean checkOrderStatus(Map<String, String> notifyMap)throws Exception;

    /**
     * 更新订单信息
     * @param itripHotelOrder
     * @throws Exception
     */
    @Deprecated
    void updateOrder(ItripHotelOrder itripHotelOrder)throws Exception;

    /**
     * 根据订单号查询订单
     * @param orderNo
     * @return
     * @throws Exception
     */
    ItripHotelOrder getOrderByOrderNo(String orderNo)throws Exception;
}
